Skip to content

[WIP DO NOT MERGE] ui: introduce new UI config file#3217

Closed
yadvr wants to merge 2 commits intoapache:masterfrom
shapeblue:ui-improvements-config
Closed

[WIP DO NOT MERGE] ui: introduce new UI config file#3217
yadvr wants to merge 2 commits intoapache:masterfrom
shapeblue:ui-improvements-config

Conversation

@yadvr
Copy link
Member

@yadvr yadvr commented Mar 12, 2019

Problem: The keyboard list in the UI is not consistent across views such as in the instance wizard and in the register template form. There is also no way to custom about url/text and doc title and help URL in the UI.
Root Cause: The list is hardcoded in the UI allowing no centralised configuration.
Solution: Introduce a new config.js file installed at the /usr/share/cloudstackmanagement/webapp/config.js location. The config.js allows configurable keyboard list, about url/text, doc title, and help URL.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

This introduces a new UI `config.js` file using which the UI could be
configured by the admin from a single config/js file.

In the first commit this allows for easy configuration of list of
keyboards.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added this to the 4.13.0.0 milestone Mar 12, 2019
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@PaulAngus
Copy link
Member

@blueorangtan package

2 similar comments
@DaanHoogland
Copy link
Contributor

@blueorangtan package

@borisstoyanov
Copy link
Contributor

@blueorangtan package

@yadvr yadvr requested review from PaulAngus and rafaelweingartner and removed request for PaulAngus March 25, 2019 08:25
@borisstoyanov
Copy link
Contributor

amazing how 3 people did the same typo...
@blueorangutan package

@blueorangutan
Copy link

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2654

@yadvr yadvr changed the title ui: introduce new UI config file [WIP DO NOT MERGE] ui: introduce new UI config file Mar 29, 2019
Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, manually verified

@yadvr
Copy link
Member Author

yadvr commented Apr 5, 2019

Common changes to config.js file moved in #3258

@yadvr yadvr closed this Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants